﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;

namespace TheVerge.Phone.Pages
{
    public partial class MediaPage : MainPage
    {
        public MediaPage()
        {
            InitializeComponent();
            DataContext = App.MainVM.Media;
        }

        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);
            App.MainVM.ActivePinnable = App.MainVM.Media;
        }

        protected override MainPage.PageSection Section
        {
            get { return MainPage.PageSection.Media; }
        }


        protected override void LoadFromQueryStrings(Dictionary<string, string> queryStrings)
        {
            mediaControl.LoadFromQueryStrings(queryStrings);
        }
    }
}